package com.yzd.learnjava.generics;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.List;

public class NeedCasting {
	public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {
		ObjectInputStream in = new ObjectInputStream(new FileInputStream(""));
		//List<Widget> shapes = (List<Wiget>)in.readObject();
		
		//List<Widget> shapes2 = List<Widget>.class.cast(in.readObject());
		
		List<Widget> shapes3 = List.class.cast(in.readObject());
	}
}
